<admintpl file="headerEx"/>
<link href="__PUBLIC__/js/artDialog/skins/default.css" rel="stylesheet" />
<title>{:L('TABLE_MODEL_LISTS')}</title>
<!--responsive table-->
<link href="__PUBLIC__/TciocEx/css/table-responsive.css" rel="stylesheet"/>
<!--ios7-->
<link rel="stylesheet" type="text/css" href="__PUBLIC__/TciocEx/js/ios-switch/switchery.css" />

<!--icheck-->
<link href="__PUBLIC__/TciocEx/js/iCheck/skins/minimal/minimal.css" rel="stylesheet">
<link href="__PUBLIC__/TciocEx/js/iCheck/skins/minimal/red.css" rel="stylesheet">
<link href="__PUBLIC__/TciocEx/js/iCheck/skins/minimal/green.css" rel="stylesheet">
</head>
<body class="sticky-header">
<section>
    <!-- main content start-->
    <div class="full-content">
        <!-- body wrapper start -->
        <div class="wrapper">
            <div class="row">
                <div class="col-sm-12">
                    <section class="panel">
                        <header class="panel-heading custom-tab turquoise-tab">
                            <ul class="nav nav-tabs">
                                <li>
                                    <a href="{:leuu('User/Indexadmin/index')}">
                                        <i class="fa fa-bars"></i> {:L('USER_INDEXADMIN_INDEX')}
                                    </a>
                                </li>
                                <li >
                                    <a href="{:leuu('User/Oauthadmin/index')}">
                                        <i class="fa fa-bars"></i>{:L('USER_OAUTHADMIN_INDEX')}
                                    </a>
                                </li>
                                <li class="active">
                                    <a href="{:leuu('User/Indexadmin/edit',array('id'=>$users['id']))}">
                                        <i class="fa fa-edit"></i>修改资料
                                    </a>
                                </li>

                            </ul>
                        </header>
                        <div class="panel-body">
                            <php>$user_statuses=array("0"=>L('USER_STATUS_BLOCKED'),"1"=>L('USER_STATUS_ACTIVATED'),"2"=>L('USER_STATUS_UNVERIFIED'));
                                $user_sex = array("0"=>L('SECRECY_SEX_USER'),"1"=>L('GIRL_SEX_USER'),"2"=>L('BOY_SEX_USER'));
                            </php>
                            <div class=" form">
                                <form class="cmxform form-horizontal adminex-form js-ajax-form" id="commentForm" method="post" action="{:U('Indexadmin/edit_post')}" novalidate="novalidate">
                                    <div class="form-group ">
                                        <label for="user_login" class="control-label col-lg-2">{:L('USERNAME')}(*)</label>
                                        <div class="col-lg-10">
                                            <input type="hidden" name="id" value="{$users['id']}">
                                            <input  disabled class=" form-control" id="user_login" name="user_login" minlength="1" value="{$users['user_login']}" type="text" required="" placeholder="请填写用户名！">
                                        </div>
                                    </div>
                                    <div class="form-group ">
                                        <label for="user_nicename" class="control-label col-lg-2">{:L('NICENAME')}(*)</label>
                                        <div class="col-lg-10">
                                            <input class="form-control " id="user_nicename" type="text" minlength="1" value="{$users['user_nicename']}"  name="user_nicename" required="" placeholder="请填写昵称！">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label for="thumb-preview" class="control-label col-lg-2" >{:L('AVATAR')}</label>
                                        <div class="col-lg-10 controls" style="text-align: left;">
                                            <input type="hidden" name="avatar" id="thumb" value="{$users.avatar|default=''}">
                                            <a href="javascript:upload_one_image('图片上传','#thumb');">
                                                <if condition="empty($users['avatar'])">
                                                    <img src="__TMPL__Public/assets/images/default-thumbnail.png" id="thumb-preview" width="135" style="cursor: hand"/>
                                                    <else />
                                                    <img src="{:sp_get_image_preview_url($users['avatar'])}" id="thumb-preview" width="135" style="cursor: hand"/>
                                                </if>
                                            </a>
                                            <input type="button" class="btn btn-small" onclick="$('#thumb-preview').attr('src','__TMPL__Public/assets/images/default-thumbnail.png');$('#thumb').val('');return false;" value="取消图片">

                                            <!--<input type="text" id="input-real_name" name="real_name" value="{$users['real_name']}"><span style="color: red;margin-left: 5px">*</span>-->
                                        </div>
                                    </div>


                                    <div class="form-group">
                                        <label for="user_email" class="control-label col-lg-2">{:L('EMAIL')}(*)</label>
                                        <div class="col-lg-10">
                                            <input class="form-control " id="user_email" type="text" minlength="3" value="{$users['user_email']}"  name="user_email" required="" placeholder="请填写邮箱！">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label for="mobile" class="control-label col-lg-2">{:L('CELL_PHONE')}</label>
                                        <div class="col-lg-10">
                                            <input class="form-control " id="mobile" type="text" value="{$users['mobile']}"  name="mobile">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-lg-2" for="create_time">{:L('REGISTRATION_TIME')}</label>
                                        <div class="col-lg-10">
                                            <input  disabled class="form-control " id="create_time" type="text" minlength="3" value="{$users['create_time']}"  name="create_time" required="">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-lg-2" for="last_login_time" >{:L('LAST_LOGIN_TIME')}</label>
                                        <div class="col-lg-10">
                                            <input disabled class="form-control " id="last_login_time" type="text" minlength="3" value="{$users['last_login_time']}"  name="last_login_time"  >
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-lg-2" for="last_login_ip">{:L('LAST_LOGIN_IP')}</label>
                                        <div class="col-lg-10">
                                            <input  disabled class="form-control " id="last_login_ip" type="text" minlength="3" value="{$users['last_login_ip']}"  name="last_login_ip"  >
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label for="user_status" class="control-label col-lg-2">{:L('STATUS')}(*)</label>
                                        <div>
                                            &nbsp;<select name="user_status" id="user_status" style="height:30px;"  >
                                                <volist name="user_statuses" id="vo" key="k">
                                                    <php>$key=$k-1;</php>
                                                    <option <eq  name="users.user_status" value="$key">selected = "selected"</eq> value="{$key}">{$user_statuses[$key]}</option>
                                                </volist>
                                            </select>
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label  for="sex" class="control-label col-lg-2" >{:L('SEX_USER')}(*) </label>
                                        <div >
                                            &nbsp;<select name="sex" id="sex" style="height:30px;" >
                                                <!--<option  value="">&#45;&#45;选择性别&#45;&#45;</option>-->
                                                <volist name="user_sex" id="vo"  key="k">
                                                    <php>$key=$k-1;</php>
                                                    <option <eq  name="data.sex" value="$key">selected = "selected"</eq> value="{$key}">{$user_sex[$key]}</option>
                                                </volist>
                                            </select>
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <div class="col-md-12 text-center clearfix">
                                            <button class="btn btn-primary js-ajax-submit" type="submit">保存</button>
                                            <a href="javascript:history.back(-1);" class="btn btn-default">返回</a>
                                        </div>
                                    </div>
                                </form>
                            </div>

                        </div>
                    </section>

                </div>
            </div>
        </div>
        <!--footer section start-->
        <footer>
            <admintpl file="copyright"/>
        </footer>
        <!--footer section end-->
    </div>
    <!-- main content end-->
</section>
<script src="__PUBLIC__/TciocEx/js/jquery-1.10.2.min.js"></script>
<script src="__PUBLIC__/js/wind.js"></script>
<script src="__PUBLIC__/js/common.js"></script>
<script src="__PUBLIC__/TciocEx/js/jquery-ui-1.9.2.custom.min.js"></script>
<script src="__PUBLIC__/simpleboot/bootstrap/js/bootstrap.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/jquery-migrate-1.2.1.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/bootstrap.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/modernizr.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/jquery.nicescroll.js"></script>
<script src="__PUBLIC__/js/ajaxForm.js"></script>

<script type="text/javascript" src="__PUBLIC__/TciocEx/js/jquery.validate.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/validation-localization/messages_zh.min.js"></script>
<script src="__PUBLIC__/TciocEx/js/scripts.js"></script>
<script src="__PUBLIC__/TciocEx/js/validation-init.js"></script>

</body>
</html>
